Skip to content

fix: close a superseding or superseded sibling PR before regenerating - #7

Merged
Mearman merged 1 commit into
mainfrom
fix/close-superseded-siblings-in-regenerate-path
Sep 9, 2026
Merged

fix: close a superseding or superseded sibling PR before regenerating#7
Mearman merged 1 commit into
mainfrom
fix/close-superseded-siblings-in-regenerate-path

Conversation

@Mearman

@Mearman Mearman commented Sep 9, 2026

Copy link
Copy Markdown
Member

discover-stranded-prs' regenerate_pr path had no equivalent of bump-and-open-pr's own close-then-create step, so a stranded PR regenerated from an older release could coexist indefinitely alongside a separately-dispatched, correctly-created PR for a newer release of the same package -- neither path ever closed the other.

Confirmed directly against novus-power/hive: PR #1926 (documents.js@7.14.0, regenerated via this path) and PR #1927 (documents.js@7.15.0, opened directly by bump-and-open-pr) survived side by side.

Checks for any other open sibling-update/-* PR before doing anything else: if it's at or above this branch's own version, this regeneration is itself already superseded, so the stranded PR is closed outright and nothing is regenerated; if it's strictly older, it's closed the same way bump-and-open-pr's own close-then-create step would, since that step never got a chance to see this regeneration coming.

Test plan

  • YAML valid
  • bash syntax check on the extracted script
  • CI green

discover-stranded-prs' regenerate_pr path had no equivalent of
bump-and-open-pr's own close-then-create step, so a stranded PR
regenerated from an older release could coexist indefinitely
alongside a separately-dispatched, correctly-created PR for a newer
release of the same package -- neither path ever closed the other.

Confirmed directly against novus-power/hive: PR #1926
(documents.js@7.14.0, regenerated via this path) and PR #1927
(documents.js@7.15.0, opened directly by bump-and-open-pr) survived
side by side.

Checks for any other open sibling-update/<package>-* PR before doing
anything else: if it's at or above this branch's own version, this
regeneration is itself already superseded, so the stranded PR is
closed outright and nothing is regenerated; if it's strictly older,
it's closed the same way bump-and-open-pr's own close-then-create
step would, since that step never got a chance to see this
regeneration coming.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review Completed 2026-09-09T19:24:59.597299Z 06e9014 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Mearman
Mearman merged commit 4fe2211 into main Sep 9, 2026
7 checks passed
@Mearman
Mearman deleted the fix/close-superseded-siblings-in-regenerate-path branch September 9, 2026 19:19
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant